package com.yj_app.qualitytest.info;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

public class QScoreInfo extends LitePalSupport implements Serializable {

    /**
     * itemid : 01010607005
     * itemname : 5、粘口松紧度(＞2cm)-2分/袋。
     * itemmemo : null
     * ccode : 01010607
     * csealflag : N
     * points : 2
     */
//    private int id;
    private String itemid;
    private String itemname;
    private String itemmemo;
    private String ccode;
    private String csealflag;
    private String points;
    private double score;
    private String suid;

//    public int getId() {
//        return id;
//    }

//    public void setId(int id) {
//        this.id = id;
//    }

    public String getItemid() {
        return TextUtils.isEmpty(itemid) ? "" : itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = (TextUtils.isEmpty(itemid) ? "" : itemid);
    }

    public String getItemname() {
        return TextUtils.isEmpty(itemname) ? "" : itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = (TextUtils.isEmpty(itemname) ? "" : itemname);
    }

    public String getItemmemo() {
        return TextUtils.isEmpty(itemmemo) ? "" : itemmemo;
    }

    public void setItemmemo(String itemmemo) {
        this.itemmemo = (TextUtils.isEmpty(itemmemo) ? "" : itemmemo);
    }

    public String getCcode() {
        return TextUtils.isEmpty(ccode) ? "" : ccode;
    }

    public void setCcode(String ccode) {
        this.ccode = (TextUtils.isEmpty(ccode) ? "" : ccode);
    }

    public String getCsealflag() {
        return TextUtils.isEmpty(csealflag) ? "" : csealflag;
    }

    public void setCsealflag(String csealflag) {
        this.csealflag = (TextUtils.isEmpty(csealflag) ? "" : csealflag);
    }

    public String getPoints() {
        return TextUtils.isEmpty(points) ? "" : points;
    }

    public void setPoints(String points) {
        this.points = (TextUtils.isEmpty(points) ? "" : points);
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getSuid() {
        return TextUtils.isEmpty(suid) ? "" : suid;
    }

    public void setSuid(String suid) {
        this.suid = (TextUtils.isEmpty(suid) ? "" : suid);
    }

    @NonNull
    @Override
    public String toString() {
        return getItemname();
    }
}
